home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 38 / Amiga Format CD38 (1999-03-15)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-04].iso / -screenplay- / hd_installers / flashbackhd / install-flashback < prev    next >
Text File  |  1999-02-08  |  4KB  |  165 lines

  1. ; Installer generated by installjst v1.0, a script by JF Fabre
  2. ; Command line: installjst Flashback f flashback flash dosfilehd
  3. (set GameDir "Flashback")
  4.  
  5. ;try to figure out a place where the user usually installs his games
  6. (if (exists "Games:" (noreq) )
  7.     (set @default-dest "Games:")
  8.     (if (exists "SYS:Games" (noreq) )
  9.         (set @default-dest "SYS:Games")
  10.         (if (exists "Work:Games" (noreq) )
  11.             (set @default-dest "Work:Games")
  12.             (if (exists "JEUX:" (noreq) )
  13.                (set @default-dest "JEUX:")
  14.                (set @default-dest "SYS:")
  15.             )
  16.         )
  17.     )
  18. )
  19.  
  20. ;ask the user to select a directory to install the game into
  21. (set default-dest
  22.      (tackon (askdir (prompt "Where would you like " @app-name " installed?\n"
  23.                              "A drawer called " GameDir " will be created.")
  24.                      (help @askdir-help)
  25.                      (default @default-dest)
  26.                      (newpath)
  27.              )
  28.      GameDir
  29.      )
  30. )
  31. (set @default-dest default-dest)
  32.  
  33. (message "\n\n\nThis loader needs the JST program (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\n"
  34. "JST is available from aminet (game/patch) or on my site\n\n"
  35. "http://perso.club-internet.fr/jffabre/amiga/patches.html")
  36.  
  37. ;;;; update OSEmu
  38.  
  39. (if (exists "C:OSEmu.400")
  40.  
  41. (set install_osemu
  42.     (askbool
  43.         (prompt    "Do you need to update OSEmu os emulation module?"
  44.             (help    "An outdated version of C:OSEmu.400 won't allow to run the game")
  45.             (choices "Update" "Leave")
  46.             (default 2)
  47.         )
  48.     )
  49. )
  50. (set install_osemu 1)
  51. )
  52.  
  53. (if (= 1 install_osemu)
  54.     (copyfiles (source "OSEmu.400")
  55.                (dest "C:")
  56.     )
  57. )
  58.  
  59. ;;;; end update OSEmu
  60.  
  61. (set install_mode
  62.     (askbool
  63.         (prompt    "Do you want to install the OS emulated version or normal DOS version?"
  64.             (help    "OS emulated version allows to quit and is OS independent\n"
  65.                 "However, it requires more memory (4MB)\n"
  66.                 "unless you set HDLOAD\n\n"
  67.                 "Normal DOS version only uses JST as a degrader, needs\n"
  68.                 "only 1MB to run but it's impossible to quit")
  69.             (choices "OS emulated" "Normal DOS")
  70.             (default 1)
  71.         )
  72.     )
  73. )
  74.  
  75. (if (= 1 install_osemu)
  76.     (copyfiles (source "OSEmu.400")
  77.                (dest "C:")
  78.     )
  79. )
  80.  
  81. ;create the selected directory
  82. (makedir @default-dest
  83.          (infos)
  84. )
  85.  
  86. (copyfiles (source "flashbackhd.readme")
  87.            (dest @default-dest)
  88.            (infos)
  89. )
  90.  
  91. (if (= 2 install_mode)
  92.  
  93. (copyfiles (source "flashback.icon")
  94.            (dest @default-dest)
  95.        (newname "flashback.info")
  96. )
  97.  
  98. ((copyfiles (source "flashbackhd.icon")
  99.            (dest @default-dest)
  100.        (newname "flashbackhd.info")
  101. )
  102.  
  103. (copyfiles (source "flashbackhd")
  104.            (dest @default-dest)
  105. ))
  106. )
  107.  
  108. (askdisk
  109.     (prompt    ("\n\n\n\n\n\nPlease insert %s disk 1 in any drive" @app-name))
  110.     (dest        "Flashback Disk 1")
  111.     (help        "Insert disk in any floppy drive\nor you'll wait for a while!")
  112. )
  113.  
  114. (copyfiles (source "Flashback Disk 1:")
  115.            (dest @default-dest)
  116.            (all)
  117. )
  118.  
  119. (message "\n\n\n\n\nI will now patch the executable")
  120.  
  121.     (if
  122.  
  123.         (= 0 (run ("patchexe %s" (tackon @default-dest "flashback") )) )
  124.         ("")
  125.         (abort "Could not patch executable!")
  126.     )
  127.  
  128. (askdisk
  129.     (prompt    ("\n\n\n\n\n\nPlease insert %s disk 2 in any drive" @app-name))
  130.     (dest        "Flashback Disk 2")
  131.     (help        "Insert disk in any floppy drive\nor you'll wait for a while!")
  132. )
  133.  
  134. (copyfiles (source "Flashback Disk 2:")
  135.            (dest @default-dest)
  136.        (all)
  137. )
  138.  
  139. (askdisk
  140.     (prompt    ("\n\n\n\n\n\nPlease insert %s disk 3 in any drive" @app-name))
  141.     (dest        "Flashback Disk 3")
  142.     (help        "Insert disk in any floppy drive\nor you'll wait for a while!")
  143. )
  144.  
  145. (copyfiles (source "Flashback Disk 3:")
  146.            (dest @default-dest)
  147.        (all)
  148. )
  149.  
  150. (askdisk
  151.     (prompt    ("\n\n\n\n\n\nPlease insert %s disk 4 in any drive" @app-name))
  152.     (dest        "Flashback Disk 4")
  153.     (help        "Insert disk in any floppy drive\nor you'll wait for a while!")
  154. )
  155.  
  156. (copyfiles (source "Flashback Disk 4:")
  157.            (dest @default-dest)
  158.        (all)
  159. )
  160.  
  161. ;(delete (tackon @default-dest ".info"))
  162.  
  163.